package com.training.java.core.unittest;

import junit.framework.TestCase;

import org.junit.Test;

public class CalculatorTest {

	@Test
	public void testAdd() {
		Calculator calc = new Calculator();
		int result = calc.add(2, 3);

		TestCase.assertEquals(5, result);
	}

	@Test
	public void testSub() {
		Calculator calc = new Calculator();
		int result = calc.subtract(56, 29);

		TestCase.assertEquals(27, result);

	}

	@Test
	public void testMultiply() {
		Calculator calc = new Calculator();
		int result = calc.multiply(3, 9);

		TestCase.assertEquals(27, result);
	}
}
